class  noClassInner
{
	public static void main(String[] args) 
	{
		Outer o = new Outer();
		o.method();
	}
}

interface Inter
{
	public abstract void show1();
	public abstract void show2();
}

class Outer
{
	/*class Inner implements Inter
	{
		public void show1(){
			System.out.println("show1");
		}
		public void show2(){
			System.out.println("show2");
		}

	}*/
	public void method(){
		//new Inner().show1();
		//new Inner().show2();

		/*new Inter(){
			public void show1(){
				System.out.println("show1");
			}

			public void show2(){
				System.out.println("show2");
			}

		}.show1();*/
		Inter i = new Inter(){
			public void show1(){
				System.out.println("show1");
			}

			public void show2(){
				System.out.println("show2");
			}

		};
		i.show1();
		i.show2();

	}	
		
}


/*interface Inter
{
	public abstract void print();
}

class Outer
{
	class Inner implements Inter
	{
		public void print(){
			System.out.println("Hello World!");
		}
	}

	public void method(){
		//Inter i = new Inter();
		//i.print();
		new Inter(){
			public void print(){
				System.out.println("print");
			}
		}.print();
	}
}*/
